/*
 * comlan
 */

package com.promfy.ui.demo;


import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

import com.promfy.R;
import com.promfy.db.demo.DBService;
import com.promfy.db.demo.Reminders;

public class RotateView extends LinearLayout implements OnClickListener{

	
	private Handler handler = new Handler(){

		@Override
		public void handleMessage(Message msg) {
			int what = msg.what;
			switch (what) {
			
			default:
				break;
			}
			super.handleMessage(msg);
		}
		
	};
	
	private LayoutInflater inflater;

	private Context context;

	private View view;

	private TextView rotateLeft;

	private TextView rotateRight;

	public TextView getRotateLeft() {
		return rotateLeft;
	}

	public TextView getRotateRight() {
		return rotateRight;
	}

	public RotateView(Context context) {
		super(context);
		this.context = context;
	
		initView();
		initData();
	}

	
	
	public RotateView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}



	private void initView(){
		inflater = LayoutInflater.from(context);
		view = inflater.inflate(R.layout.rotate_view, this);
		rotateLeft = (TextView)findViewById(R.id.rotate_left_rotate_view);
		rotateRight = (TextView)findViewById(R.id.rotate_right_rotate_view);
		
		rotateLeft.setOnClickListener(this);
		rotateRight.setOnClickListener(this);
	}
	
	private void initData() {
		
	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.rotate_left_rotate_view:
		
			break;
		case R.id.rotate_right_rotate_view:

			break;
		//exit
		case 3:
			
			break;
		default:
			break;
		}
	}

	
	


}
